//
//  NetworkSingleton.h
//  Builder
//
//  Created by JCK on 2017/12/5.
//  Copyright © 2017年 JCK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

//请求超时
#define TIMEOUT 30

typedef void(^SuccessBlock)(id responseBody);
typedef void(^FailureBlock)(NSString *error);

@interface NetworkSingleton : NSObject

+(NetworkSingleton *)sharedManager;
-(AFHTTPSessionManager *)baseHtppRequest;


#pragma mark - 获取数据
-(void)POSTdata:(NSDictionary *)parameters Path:(NSString *)path successBlock:(SuccessBlock)successBlock failureBlock:(FailureBlock)failureBlock;

@end
